package com.rdgk.newtech.controller;

import com.alibaba.fastjson.JSONObject;
import com.rdgk.newtech.service.OrgAnalyseService;
import com.rdgk.newtech.service.TopicService;
import com.rdgk.newtech.util.CommonUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @author: bguan
 * @description: 机构动态Controller
 */
@RestController
@RequestMapping("/topic")
public class TopicController {

	@Autowired
	private TopicService topicService;

	/**
	 * 重点机构列表
	 */
	@PostMapping("/topicList")
	public JSONObject topicList(HttpServletRequest request) {
		return CommonUtil.successJson(topicService.topicList());
	}

}
